package com.mijie.homi.admin.service.commom;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mijie.core.Paging;
import com.mijie.homi.admin.dao.commom.StatDao;
import com.mijie.homi.admin.domain.commom.ActiveStat;
import com.mijie.homi.admin.domain.commom.OperationsStat;
import com.mijie.homi.admin.domain.commom.Stat;
import com.mijie.homi.admin.domain.commom.StatByChannel;

@Service
public class StatService {

	@Autowired
	private StatDao dao;
	
	public void listActiveStat(Paging<ActiveStat> paging,Map<String,Object> parameter){
		dao.listActiveStat(paging, parameter);
	}
	
	public void listStat(Paging<Stat> paging,Map<String,Object> parameter){
		dao.listStat(paging, parameter);
	}
	
	public Stat sumStat(Map<String,Object> parameter){
		return dao.sumStat(parameter);
	}
	
	public void listOperationsStat(Paging<OperationsStat> paging,Map<String,Object> parameter){
		dao.listOperationsStat(paging, parameter);
	}
	
	public OperationsStat getOperationsStatAvg(Map<String,Object> parameter){
		return dao.getOperationsStatAvg(parameter);
	}
	
	public StatByChannel listStatByChannel(Map<String,Object> parameter){
		return dao.listStatByChannel(parameter);
	}
}
